package com.fenye.testflow.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fenye.testflow.model.entity.system.SysUserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    @Select("select user_id  from sys_user_role where role_id = #{role_id}")
    List<Long> getUserIdsByRoleId(Long roleId);
}
